package com.woniuxy.woniuticket.moviemodule.dao;

import com.woniuxy.woniuticket.pojo.CinemaSeats;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CinemaSeatsDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(CinemaSeats record);

    int insertSelective(CinemaSeats record);

    CinemaSeats selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CinemaSeats record);

    int updateByPrimaryKey(CinemaSeats record);

    //根据订单id查询当前用户的座位信息
    List<CinemaSeats> findSeatsByOrderNumber(String ordernum);

    //查询影厅对应的所有座位信息
    List<CinemaSeats> selectSeatsBySid(CinemaSeats cinemaSeats);

}